package rmmk.algorithms.similarityMeasures.utils;

import java.util.Comparator;
import java.util.Map;


public class ValueComparator implements Comparator<String> {

    ValueComparatorData data = new ValueComparatorData();
	public ValueComparator(Map<String, Integer> base) {
        this.data.base = base;
    }

    public int compare(String a, String b) {
        if (data.base.get(b) <= data.base.get(a)) {
            return -1;
        } else {
            return 1;
        }
    }
}
